package com.upic.po;

import com.upic.base.entiy.BaseEntity;
import com.upic.enums.UserExaminationQuestionsStatusEnum;
import com.upic.enums.UserExaminationQuestionsTypeEnum;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import java.util.Date;

/**
 * Created by zhubuqing on 2018/2/7.
 */
@Data
@Entity
public class UserExaminationQuestions extends BaseEntity {
    private long userId; // 考生ID

    private long examinationId; // 考试ID

    private Date startTime; // 开始考试时间

    private double score; // 分数

    private String questionIds; // 问题（Json）

    private String answers; // 答案（Json）

    @Enumerated(EnumType.STRING)
    private UserExaminationQuestionsTypeEnum type; // 类型

    @Enumerated(EnumType.STRING)
    private UserExaminationQuestionsStatusEnum status; // 状态
}
